#define _CRT_SECURE_NO_WARNINGS 1

#include "List.h"

void ListTest1()
{
	ListNode* head = NULL;
	head = ListInit(head);

	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);

	ListPrint(head);

	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);

	ListPrint(head);

}

void ListTest2()
{
	ListNode* head = NULL;
	head = ListInit(head);

	ListPushFront(head, 1);
	ListPushFront(head, 2);
	ListPushFront(head, 3);
	ListPushFront(head, 4);

	ListPrint(head);

	/*ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);
	ListPrint(head);*/

	ListDestory(head);
	head = NULL;


}

int main()
{
	//ListTest1();
	ListTest2();

	return 0;
}